gtk4.git
12 years agoGtkPlacesSidebar: Correct all since tags
Matthias Clasen [Thu, 2 May 2013 01:19:37 +0000 (21:19 -0400)]
GtkPlacesSidebar: Correct all since tags

12 years agoDisable broken picker a11y test
Matthias Clasen [Thu, 2 May 2013 01:03:55 +0000 (21:03 -0400)]
Disable broken picker a11y test

The GtkComboBox accessible implementation is pretty broken,
and it shows through in this a11y test. Disable it for now.

12 years agoUpdate a few a11y test results
Matthias Clasen [Wed, 1 May 2013 22:53:30 +0000 (18:53 -0400)]
Update a few a11y test results

12 years agoFix image-load-from-file reftest
Matthias Clasen [Wed, 1 May 2013 21:03:48 +0000 (17:03 -0400)]
Fix image-load-from-file reftest

Need to reset css here to avoid theme interference.

12 years agoTemporarily remove grid-span reftest
Matthias Clasen [Wed, 1 May 2013 20:55:12 +0000 (16:55 -0400)]
Temporarily remove grid-span reftest

This was testing grid size allocation changes that had to be
reverted because they broke gnumeric.

12 years agoTemporarily remove window-border reftest
Matthias Clasen [Wed, 1 May 2013 20:51:45 +0000 (16:51 -0400)]
Temporarily remove window-border reftest

It is broken by unfinished csd changes.

12 years agoTemporarily remove button-wrapping reftest
Matthias Clasen [Wed, 1 May 2013 20:50:59 +0000 (16:50 -0400)]
Temporarily remove button-wrapping reftest

Its broken by unsettled GtkBin size allocation changes.

12 years agoUpdated POTFILES.skip
Piotr Drąg [Wed, 1 May 2013 21:48:33 +0000 (23:48 +0200)]
Updated POTFILES.skip

12 years agopaned: Fixup recent commit
Benjamin Otte [Wed, 1 May 2013 21:26:27 +0000 (23:26 +0200)]
paned: Fixup recent commit

d90e3670cef44c688763f15d5695f84ebe985855 had a bunch of embarrassing
bugs.

Fixes paned-undersized reftest.

12 years agowayland: Don't add/remove displays manually
Benjamin Otte [Wed, 1 May 2013 16:12:38 +0000 (18:12 +0200)]
wayland: Don't add/remove displays manually

This code is handled by GdkDisplay itself these days.

12 years agox11: Move initialization code
Benjamin Otte [Wed, 1 May 2013 16:11:26 +0000 (18:11 +0200)]
x11: Move initialization code

Move it from GdkDisplayManagerX11.init to GdkDisplay.class_init.

This shouldn't cause any problems, but who knows, so keep this patch
small.

Reason for this is the unification of display managers.

12 years agotests: make deprecated functions not warn
Benjamin Otte [Wed, 1 May 2013 15:50:14 +0000 (17:50 +0200)]
tests: make deprecated functions not warn

We still want to test them though.

12 years agotests: Comment out unused functions
Benjamin Otte [Wed, 1 May 2013 15:46:50 +0000 (17:46 +0200)]
tests: Comment out unused functions

12 years agowindow: last size is more important than default size
Benjamin Otte [Wed, 1 May 2013 14:40:13 +0000 (16:40 +0200)]
window: last size is more important than default size

reorder size computation code to reflect that.

https://bugzilla.gnome.org/show_bug.cgi?id=696882

12 years agowindow: Deprecate gtk_window_reshow_with_initial_size()
Benjamin Otte [Wed, 1 May 2013 14:23:17 +0000 (16:23 +0200)]
window: Deprecate gtk_window_reshow_with_initial_size()

12 years agopaned: Correctly compute child sizes in size requests
Benjamin Otte [Mon, 29 Apr 2013 23:58:59 +0000 (01:58 +0200)]
paned: Correctly compute child sizes in size requests

12 years agogtkprivate: #define OPPOSITE_ORIENTATION
Benjamin Otte [Mon, 29 Apr 2013 23:15:01 +0000 (01:15 +0200)]
gtkprivate: #define OPPOSITE_ORIENTATION

and use it

12 years agopaned: Split size request code
Benjamin Otte [Mon, 29 Apr 2013 17:02:28 +0000 (19:02 +0200)]
paned: Split size request code

The code is pretty different for both cases, so better split things
here.

12 years agopaned: Split out a function
Benjamin Otte [Mon, 29 Apr 2013 16:20:22 +0000 (18:20 +0200)]
paned: Split out a function

12 years agobutton: Rework size request/allocation code
Benjamin Otte [Mon, 29 Apr 2013 13:07:22 +0000 (15:07 +0200)]
button: Rework size request/allocation code

- Split out a common function
- Implement hfw properly.

12 years agowidget: Improve debug output
Benjamin Otte [Mon, 29 Apr 2013 13:07:01 +0000 (15:07 +0200)]
widget: Improve debug output

12 years agobutton: Use _gtk_widget_get_preferred_size_for_size()
Benjamin Otte [Sat, 27 Apr 2013 21:24:41 +0000 (23:24 +0200)]
button: Use _gtk_widget_get_preferred_size_for_size()

This was accidently lost when merging baseline support.

12 years agowidget: Adapt _gtk_widget_get_preferred_size_for_size()
Benjamin Otte [Sat, 27 Apr 2013 21:16:11 +0000 (23:16 +0200)]
widget: Adapt _gtk_widget_get_preferred_size_for_size()

... for baseline support byu taking two extra (possible NULL) arguments.

12 years agotests: Add reftest for broken button sizing
Benjamin Otte [Sat, 27 Apr 2013 21:13:03 +0000 (23:13 +0200)]
tests: Add reftest for broken button sizing

https://bugzilla.gnome.org/show_bug.cgi?id=698433

12 years agoDisable the filechooser template tests
Matthias Clasen [Wed, 1 May 2013 14:28:53 +0000 (10:28 -0400)]
Disable the filechooser template tests

The places sidebar breaks the finalization checks in these tests
https://bugzilla.gnome.org/show_bug.cgi?id=699393

12 years agoDisable the object-finalize test for now
Matthias Clasen [Wed, 1 May 2013 14:28:03 +0000 (10:28 -0400)]
Disable the object-finalize test for now

GtkPlacesSidebar breaks this:
https://bugzilla.gnome.org/show_bug.cgi?id=699393

12 years agoAdd missing symbols
Matthias Clasen [Wed, 1 May 2013 14:27:37 +0000 (10:27 -0400)]
Add missing symbols

12 years agoComment out broken tests
Matthias Clasen [Wed, 1 May 2013 13:41:11 +0000 (09:41 -0400)]
Comment out broken tests

Tsk, tsk. These tests were broken in the recent display manager
changes.  Please run make check after major refactoring.

12 years agoAvoid an accidental export
Matthias Clasen [Wed, 1 May 2013 12:46:50 +0000 (08:46 -0400)]
Avoid an accidental export

12 years agoUpdates
Matthias Clasen [Wed, 1 May 2013 12:29:01 +0000 (08:29 -0400)]
Updates

12 years agoRevert "Don't build gtk-launch when gio-unix is not available"
Hib Eris [Tue, 30 Apr 2013 14:17:43 +0000 (16:17 +0200)]
Revert "Don't build gtk-launch when gio-unix is not available"

The gtk-launch tool can be build without gio-unix (although it
will not really do much without an alternative implementation for
g_desktop_app_info).

So there is no need to not build gtk-launch anymore.

This reverts commit 9a1235bf0dbdb1701779bec0ccae043cc4243ce5.

https://bugzilla.gnome.org/show_bug.cgi?id=682824

12 years ago[l10n] Updated Italian translation.
Milo Casagrande [Tue, 30 Apr 2013 17:22:12 +0000 (19:22 +0200)]
[l10n] Updated Italian translation.

12 years ago[l10n] Updated Italian translation.
Milo Casagrande [Mon, 29 Apr 2013 21:00:27 +0000 (23:00 +0200)]
[l10n] Updated Italian translation.

12 years agoFix a typo
Matthias Clasen [Mon, 29 Apr 2013 17:06:59 +0000 (13:06 -0400)]
Fix a typo

Modifed should be Modified.
https://bugzilla.gnome.org/show_bug.cgi?id=699225

12 years agogtksizerequestcache: Fix typo that lead to crash/leak
Alexander Larsson [Mon, 29 Apr 2013 16:15:12 +0000 (18:15 +0200)]
gtksizerequestcache: Fix typo that lead to crash/leak

We were checking for cache->requests_x but freeing cache->requests_y
which could cause a crash/leak.

12 years agodocs: Reorder compiler command line for new GCC
David King [Tue, 13 Nov 2012 14:13:32 +0000 (14:13 +0000)]
docs: Reorder compiler command line for new GCC

Newer versions of GCC/binutils must have the source file come before the
preprocessor and linker flags on the compiler command line, and this is
also compatible with previous versions.

https://bugzilla.gnome.org/show_bug.cgi?id=680241

12 years agodocs: Add GtkWidget::show,hide,map,unmap,realize,unrealize
David King [Thu, 22 Nov 2012 20:33:13 +0000 (20:33 +0000)]
docs: Add GtkWidget::show,hide,map,unmap,realize,unrealize

Add gtk-doc comments for several signals on GtkWidget.

https://bugzilla.gnome.org/show_bug.cgi?id=688896

12 years agodocs: Add (inout) to requisition of gtk_menu_item_toggle_size_request()
David King [Thu, 15 Nov 2012 18:54:47 +0000 (18:54 +0000)]
docs: Add (inout) to requisition of gtk_menu_item_toggle_size_request()

https://bugzilla.gnome.org/show_bug.cgi?id=675571

12 years agoFix a few memory leaks wrt to translations
Matthias Clasen [Mon, 29 Apr 2013 01:43:49 +0000 (21:43 -0400)]
Fix a few memory leaks wrt to translations

Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=699016
The fix here is slightly different. We make
_gtk_builder_parser_translate return a const char * instead of
a dup'ed string, and fix up the callers.

12 years agoGtkGrid: Undo a size allocation tweak
Matthias Clasen [Sun, 28 Apr 2013 22:46:41 +0000 (18:46 -0400)]
GtkGrid: Undo a size allocation tweak

Revert 5e1a06d1b124f09a1a54d5ae0f38905dbdc2cc81

This change caused empty rows to 'open up', which was not
intended and causes problems as seen in bug 698660.

12 years agoAdd a testcase for empty grid rows
Matthias Clasen [Sun, 28 Apr 2013 22:46:11 +0000 (18:46 -0400)]
Add a testcase for empty grid rows

This adds a testcase described in bug 698660 to testgrid.

12 years agoUpdated Lithuanian translation
Žygimantas Beručka [Sun, 28 Apr 2013 10:24:23 +0000 (13:24 +0300)]
Updated Lithuanian translation

12 years agoUpdated German translation
Mario Blättermann [Sat, 27 Apr 2013 20:42:37 +0000 (22:42 +0200)]
Updated German translation

12 years agoAdd some tests for GtkWindow
Matthias Clasen [Sat, 27 Apr 2013 17:34:18 +0000 (13:34 -0400)]
Add some tests for GtkWindow

These tests may have some assumptions on reasonable window manager
behaviour.  For now, we just test that the default size of the
window ends up as the allocated size of the content. This test
currently fails with client-side decorations, because we are
not properly discriminating between overall window size and
content size.

12 years agoGtkImage: do not leak metrics in baseline align
Paolo Borelli [Sat, 27 Apr 2013 09:08:21 +0000 (11:08 +0200)]
GtkImage: do not leak metrics in baseline align

https://bugzilla.gnome.org/show_bug.cgi?id=699020

12 years agogtk: Add COMPOSITE_TEMPLATES to EXTRA_DIST
Rico Tzschichholz [Fri, 26 Apr 2013 07:25:44 +0000 (09:25 +0200)]
gtk: Add COMPOSITE_TEMPLATES to EXTRA_DIST

12 years agowayland: when possible, fill in actual and predicted presentation times
Owen W. Taylor [Thu, 25 Apr 2013 15:46:31 +0000 (11:46 -0400)]
wayland: when possible, fill in actual and predicted presentation times

There is currently no Wayland protocol for providing presentation
timestamps or hints about when drawing will be presented onscreen.
However, by assuming the straightforward algorithm used by the
DRM backend to Weston, we can reverse engineer the right values.

https://bugzilla.gnome.org/show_bug.cgi?id=698864

12 years agowayland: fill in refresh_interval in GdkFrameTimings
Owen W. Taylor [Thu, 25 Apr 2013 15:19:31 +0000 (11:19 -0400)]
wayland: fill in refresh_interval in GdkFrameTimings

Track the outputs that a window is on, and use the refresh rate from
a random one of those outputs for the refresh_interval in
GdkFrameTimings.

https://bugzilla.gnome.org/show_bug.cgi?id=698864

12 years agoGdkWaylandWindow: Consolidate surface creation and destruction code
Owen W. Taylor [Thu, 25 Apr 2013 15:11:02 +0000 (11:11 -0400)]
GdkWaylandWindow: Consolidate surface creation and destruction code

Combine duplicate code for creating and destroying surfaces.
To make the operation of the destroy() operation more obvious, the
destruction of the (fake) root window at display dispose time is
changed to not be a "foreign" destroy.

https://bugzilla.gnome.org/show_bug.cgi?id=698864

12 years agoGdkWaylandWindow: synchronize frame drawing
Owen W. Taylor [Wed, 24 Apr 2013 22:14:22 +0000 (18:14 -0400)]
GdkWaylandWindow: synchronize frame drawing

Use wl_surface_frame() to get notification when the compositor paints
a frame, and use this to throttle drawing to the compositor's refresh
cycle.

https://bugzilla.gnome.org/show_bug.cgi?id=698864

12 years agoGdkWindowWayland: make sure we attach the surface when repainting
Owen W. Taylor [Wed, 24 Apr 2013 22:00:41 +0000 (18:00 -0400)]
GdkWindowWayland: make sure we attach the surface when repainting

Lazily creating the cairo surface that backs a window when we
first paint to it means that the call to
gdk_wayland_window_attach_image() in
gdk_wayland_window_process_updates_recurse() wasn't working the
first time a window was painted.

https://bugzilla.gnome.org/show_bug.cgi?id=698864

12 years agoGdkWindowWayland: draw, then damage, then commit
Owen W. Taylor [Tue, 23 Apr 2013 18:39:48 +0000 (14:39 -0400)]
GdkWindowWayland: draw, then damage, then commit

When exposing an area, we were individually damaging and committing
each rectangle, *before* drawing. Surprisingly, this almost worked.
Order things right and only commit once.

https://bugzilla.gnome.org/show_bug.cgi?id=698864

12 years agoanimated-resizing, video-timer: Add missing return value from ::draw
Owen W. Taylor [Wed, 24 Apr 2013 21:42:42 +0000 (17:42 -0400)]
animated-resizing, video-timer: Add missing return value from ::draw

When we connect to GtkWidget::draw, the signal handler should have
a return value. This fixes overdrawing client-side decorations.

12 years agoGtkStack: improve docs
Matthias Clasen [Thu, 25 Apr 2013 02:07:09 +0000 (22:07 -0400)]
GtkStack: improve docs

12 years agoGenerate new images
Matthias Clasen [Thu, 25 Apr 2013 01:56:08 +0000 (21:56 -0400)]
Generate new images

12 years agoDocs: some widget gallery updates
Matthias Clasen [Thu, 25 Apr 2013 01:55:13 +0000 (21:55 -0400)]
Docs: some widget gallery updates

Add images for Scrollbar, info bar, combo box text, etc.

12 years agoGtkStackSwitcher: unset tooltip
Matthias Clasen [Thu, 25 Apr 2013 00:10:05 +0000 (20:10 -0400)]
GtkStackSwitcher: unset tooltip

It was pointed out to me that we leave the tooltip behind
when setting and unsetting an icon.

12 years agoGtkNotebook: Consistent boolean handling
Matthias Clasen [Wed, 24 Apr 2013 23:58:22 +0000 (19:58 -0400)]
GtkNotebook: Consistent boolean handling

Normalize boolean parameters in gtk_notebook_set_tab_reorderable and
gtk_notebook_set_tab_detachable before comparing them. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=697196

12 years agodocs: fix some typos in newly introduced methods
Cosimo Cecchi [Wed, 24 Apr 2013 17:10:35 +0000 (13:10 -0400)]
docs: fix some typos in newly introduced methods

12 years ago[l10n] Update Interlingua translation
Nik Kalach [Wed, 24 Apr 2013 14:03:15 +0000 (16:03 +0200)]
[l10n] Update Interlingua translation

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Wed, 24 Apr 2013 07:08:19 +0000 (10:08 +0300)]
Updated Hebrew translation.

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 23 Feb 2013 14:08:16 +0000 (16:08 +0200)]
Updated Hebrew translation.

12 years agowidget-factory: Add new widgets
Matthias Clasen [Tue, 23 Apr 2013 12:48:27 +0000 (08:48 -0400)]
widget-factory: Add new widgets

Add GtkStack and GtkRevealer to the second page in
gtk3-widget-factory.

12 years agooverlay: Silence gcc warnings
Benjamin Otte [Tue, 23 Apr 2013 18:13:33 +0000 (14:13 -0400)]
overlay: Silence gcc warnings

12 years agotests/scrolling-performance: Add a new test for GtkViewport performance
Owen W. Taylor [Sun, 21 Apr 2013 20:05:40 +0000 (16:05 -0400)]
tests/scrolling-performance: Add a new test for GtkViewport performance

Add a test that takes four copies of the widget-factory widgets and
scrolls them around to test how smoothly we can scroll and draw.

12 years agotests/animated-resizing: Split frame statistics out into a separate file
Owen W. Taylor [Sun, 21 Apr 2013 22:31:36 +0000 (18:31 -0400)]
tests/animated-resizing: Split frame statistics out into a separate file

Split the code for computing frame rate and latency into a separate file
so we can use it from multiple tests.

12 years agoGtkSpinButton: don't constantly recreate style contexts for buttons
Owen W. Taylor [Tue, 23 Apr 2013 17:12:07 +0000 (13:12 -0400)]
GtkSpinButton: don't constantly recreate style contexts for buttons

Cache the style contexts for the up and down panels, instead of recreating
them each time they are drawn or size requested. GtkSpinButtons were
many times slower to draw than other widgets because of the constant
style matching.

https://bugzilla.gnome.org/show_bug.cgi?id=698682

12 years agoMerge branch 'places-sidebar'
Federico Mena Quintero [Tue, 23 Apr 2013 17:58:09 +0000 (13:58 -0400)]
Merge branch 'places-sidebar'

12 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Tue, 23 Apr 2013 08:09:46 +0000 (05:09 -0300)]
Updated Brazilian Portuguese translation

12 years agoHandle non-baseline supporting subclasses overriding baseline supporting classes
Alexander Larsson [Wed, 27 Mar 2013 09:22:14 +0000 (10:22 +0100)]
Handle non-baseline supporting subclasses overriding baseline supporting classes

If a subclass (say a child of GtkButton) overrides the non-baseline
size request methods we need to call these, rather than the new
get_height_and_baseline_for_width method.

In order to handle this we make the default for this method to be
NULL, and instead check at runtime which method to call. If any
non-baseline vfunc has changed in a class but the baseline one
hasn't, then we can't use the baseline one.

12 years agoAdd baseline functions to docs
Alexander Larsson [Wed, 27 Mar 2013 08:48:58 +0000 (09:48 +0100)]
Add baseline functions to docs

12 years agoAdd baseline alignment functions to gtk.symbols
Alexander Larsson [Wed, 27 Mar 2013 08:45:08 +0000 (09:45 +0100)]
Add baseline alignment functions to gtk.symbols

12 years agoGtkLabel: Minor cleanup
Alexander Larsson [Wed, 27 Mar 2013 08:44:02 +0000 (09:44 +0100)]
GtkLabel: Minor cleanup

Make sure we always compare for a set baseline in the same way.
I.e. baseline != -1, never baseline >= 0.

12 years agoGtkWidget: Add missing Since docs
Alexander Larsson [Wed, 27 Mar 2013 08:43:40 +0000 (09:43 +0100)]
GtkWidget: Add missing Since docs

12 years agoGtkImage: Reuse previously calculated baseline_align in draw()
Alexander Larsson [Wed, 27 Mar 2013 08:42:43 +0000 (09:42 +0100)]
GtkImage: Reuse previously calculated baseline_align in draw()

No need to recalculate this every time we draw.

12 years agoGtkBox: Add missing Since in docs
Alexander Larsson [Wed, 27 Mar 2013 08:40:09 +0000 (09:40 +0100)]
GtkBox: Add missing Since in docs

12 years agoGtkGrid: Add missing Since docs
Alexander Larsson [Wed, 27 Mar 2013 08:39:44 +0000 (09:39 +0100)]
GtkGrid: Add missing Since docs

12 years agoAdd tests/testbaseline
Alexander Larsson [Tue, 5 Mar 2013 14:23:31 +0000 (15:23 +0100)]
Add tests/testbaseline

12 years agoGtkDialog: Baseline align buttons in action area
Alexander Larsson [Tue, 26 Mar 2013 10:46:55 +0000 (11:46 +0100)]
GtkDialog: Baseline align buttons in action area

12 years agoGtkEventBox: Support baseline alignment
Alexander Larsson [Tue, 26 Mar 2013 10:08:33 +0000 (11:08 +0100)]
GtkEventBox: Support baseline alignment

This allows baselines to propagate from the child of the eventbox.

12 years agoGtkButtonBox: Support baseline alignment
Alexander Larsson [Mon, 25 Mar 2013 16:59:55 +0000 (17:59 +0100)]
GtkButtonBox: Support baseline alignment

12 years agoGtkCheckButton and GtkRadioButton: Implement baseline alignment
Alexander Larsson [Fri, 22 Mar 2013 11:01:26 +0000 (12:01 +0100)]
GtkCheckButton and GtkRadioButton: Implement baseline alignment

12 years agoGtkSpinButton: Support baseline alignment
Alexander Larsson [Fri, 22 Mar 2013 10:32:07 +0000 (11:32 +0100)]
GtkSpinButton: Support baseline alignment

12 years agoGtkGrid: Support baseline alignment in GtkGrid
Alexander Larsson [Thu, 21 Mar 2013 10:09:43 +0000 (11:09 +0100)]
GtkGrid: Support baseline alignment in GtkGrid

We support a local baseline in each row, as well as selecting
a specific row for the global baseline of the entire GtkGrid.

12 years agoGtkEntry: Support baselines
Alexander Larsson [Wed, 20 Mar 2013 13:30:41 +0000 (14:30 +0100)]
GtkEntry: Support baselines

12 years agoGtkButton: Add baseline align support
Alexander Larsson [Thu, 7 Mar 2013 12:53:16 +0000 (13:53 +0100)]
GtkButton: Add baseline align support

12 years agoGtkImage: Support baselines
Alexander Larsson [Tue, 26 Mar 2013 09:56:53 +0000 (10:56 +0100)]
GtkImage: Support baselines

This uses the current font metrics to guess the baseline of the image.
Without this any non-centered baseline in buttons with images look weird.

12 years agoGtkAlignment: Support baselines
Alexander Larsson [Thu, 7 Mar 2013 12:45:01 +0000 (13:45 +0100)]
GtkAlignment: Support baselines

We now report any baselines from the child, and allocate it.
Also, in the case of a baselign aligned child we ignore yscale/yalign
as that is not supportable.

12 years agoGtkBox: Add baseline alignment for horizontal boxes
Alexander Larsson [Tue, 5 Mar 2013 14:20:20 +0000 (15:20 +0100)]
GtkBox: Add baseline alignment for horizontal boxes

Report a baseline based height and baseline whenever there
are children with ALIGN_BASELINE.

Assign baseline to childen in size_allocate. Either the one inherited
from the parent if set, or otherwise calculate one based on any
ALIGN_BASELINE children.

12 years agoGtkLabel: Support baseline
Alexander Larsson [Tue, 5 Mar 2013 14:14:17 +0000 (15:14 +0100)]
GtkLabel: Support baseline

Report the baseline in get_preferred_height_and_baseline_for_width().

12 years agoGtkSizeRequestCache: Don't store baselines in horizontal case
Alexander Larsson [Fri, 22 Mar 2013 11:27:17 +0000 (12:27 +0100)]
GtkSizeRequestCache: Don't store baselines in horizontal case

This saves memory for every widget (maximum 48 bytes per widget) at
a cost of a few duplicated codepaths in the size request cache.

12 years agoAdd GTK_DEBUG=baselines support
Alexander Larsson [Thu, 21 Mar 2013 17:25:29 +0000 (18:25 +0100)]
Add GTK_DEBUG=baselines support

This draws red lines to show where the baselines are

12 years agoInitial support for baselines
Alexander Larsson [Tue, 5 Mar 2013 13:54:03 +0000 (14:54 +0100)]
Initial support for baselines

This modifies the size machinery in order to allow baseline support.

We add a new widget vfunc get_preferred_height_and_baseline_for_width
which queries the normal height_for_width (or non-for-width if width
is -1) and additionally returns optional (-1 means "no baseline")
baselines for the minimal and natural heights.

We also add a new gtk_widget_size_allocate_with_baseline() which
baseline-aware containers can use to allocate children with a specific
baseline, either one inherited from the parent, or one introduced due
to requested baseline alignment in the container
itself. size_allocate_with_baseline() works just like a normal size
allocation, except the baseline gets recorded so that the child can
access it via gtk_widget_get_allocated_baseline() when it aligns
itself.

There are also adjust_baseline_request/allocation similar to the
allocation adjustment, and we extend the size request cache to also
store the baselines.

12 years agoAdd GTK_ALIGN_BASELINE to GtkAlign
Alexander Larsson [Tue, 5 Mar 2013 14:06:12 +0000 (15:06 +0100)]
Add GTK_ALIGN_BASELINE to GtkAlign

Setting this means baseline aware containers should align the widget
according to the baseline. For other containers this behaves like
FILL.

In order to not suprise old code with a new enum value we always
return _FILL for _BASELINE unless you specifically request it via
gtk_widget_get_valign_with_baseline().

12 years agoFix automake warning about CFLAGS etc. being user variables
John Ralls [Mon, 22 Apr 2013 22:48:03 +0000 (15:48 -0700)]
Fix automake warning about CFLAGS etc. being user variables

12 years agoRemove get_atom_name and atom_intern
John Ralls [Mon, 22 Apr 2013 22:46:08 +0000 (15:46 -0700)]
Remove get_atom_name and atom_intern

Completes aa9e974 for quartz

12 years agoFix attempted inclusion of local headers with system brackets.
John Ralls [Mon, 22 Apr 2013 22:40:03 +0000 (15:40 -0700)]
Fix attempted inclusion of  local headers with system brackets.

12 years agogdk: Temporarily add -xobjective-c to CFLAGS
John Ralls [Mon, 22 Apr 2013 22:38:46 +0000 (15:38 -0700)]
gdk: Temporarily add -xobjective-c to CFLAGS

To enable compiling the quartz backend after a6a4428

12 years agobutton: Implement height-for-width
Benjamin Otte [Mon, 22 Apr 2013 21:37:18 +0000 (17:37 -0400)]
button: Implement height-for-width

https://bugzilla.gnome.org/show_bug.cgi?id=698433

12 years agosizerequest: Split out a common function
Benjamin Otte [Mon, 22 Apr 2013 21:37:05 +0000 (17:37 -0400)]
sizerequest: Split out a common function